<%@page contentType="text/html" pageEncoding="UTF-8" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="vdab" uri="http://vdab.be/tags" %>
<c:set var="contextPath" value="${pageContext.servletContext.contextPath }"/>
<!doctype html>
<html lang="nl">
<head>
	<title>Frituur Frida – zoek ingredienten</title>
	<link rel="stylesheet" href="${contextPath}/styles/default.css"/>
</head>
<body>
	<vdab:menu/>
	<h1>Sauzeningredienten</h1>
	<c:url value="/sauzen/ingredienten.htm" var="url" />
    <form method="get" action="${url}"> 
    	<label>Ingredient:
    	<input name="ingredient" value="${param.ingredient }">
    	<span class="fout">${fouten.ingredient}</span></label>
    	<input type="submit" value="Zoeken">
    </form>
    <c:if test="${not empty sauzen}">
      <ul>
        <c:forEach var="saus" items="${sauzen}">
          <li>${saus.naam}</li>
      	</c:forEach>
      </ul>
    </c:if>
    <c:if test="${not empty fouten.nietgevonden}">
      ${fouten.nietgevonden}
    </c:if>

</body>
</html>